
package com.wwy.monitor.controller;

import com.wwy.monitor.common.ServiceResponse;
import com.wwy.monitor.model.tddl.query.MonitorLogQuery;
import com.wwy.monitor.service.MonitorLogService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author long.Wanheng
 * @version V1.00
 * @createDate 2019/10/30
 */
@RestController
@RequestMapping(value = "/api/monitorLog")
public class MonitorLogController {
    @Resource
    private MonitorLogService monitorLogService;

    /**
     * 分页获取配置详情
     *
     * @return
     */
    @GetMapping("/page")
    @ResponseBody
    private ServiceResponse page(MonitorLogQuery query) {
        return ServiceResponse.success(monitorLogService.queryMonitorLog(query));
    }
}